package com.hxc.interest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hxc.common.annotation.Excel;
import com.hxc.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 点赞记录对象 t_reaction_thumbsup
 * 
 * @author hxc
 * @date 2021-08-19
 */
public class TReactionThumbsup extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    /** 事件id */
    @Excel(name = "事件id")
    private Long reactionId;
    /** 点赞用户id */
    @Excel(name = "点赞用户id")
    private Long userId;

    /** ----------------------------------表关联字段----------------------------- */
    /** 反馈人id */
    @TableField(exist = false)
    private Long reactionUserId;

    public void setId(Long id) 
    {
        this.id = id;
    }
    public Long getId() 
    {
        return id;
    }

    public void setReactionId(Long reactionId) 
    {
        this.reactionId = reactionId;
    }
    public Long getReactionId() 
    {
        return reactionId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }
    public Long getUserId() 
    {
        return userId;
    }

    public Long getReactionUserId() { return reactionUserId; }
    public void setReactionUserId(Long reactionUserId) { this.reactionUserId = reactionUserId; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reactionId", getReactionId())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("reactionUserId", getReactionUserId())
            .toString();
    }
}
